<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml" id="html">
    <head>
        <title></title>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <base href="<?= base_url(1); ?>" />
        <link type="text/css" href="css/main.css?v=<?= $config['version'] ?>" rel="stylesheet" />
    </head>
    <body>
        <?php include(VIEWPATH . 'common/main_header.php'); ?>
        <form action="" method="POST" id="rowForm">
            <table width="100%" border="0" cellspacing="1" cellpadding="0" class="tablegrid tableedit">
                <!--
                <tr align="left">
                    <th colspan="2" align="left"><?= $title ?></th>
                </tr>
                -->

                <tr align="left"> 
                    <th></th> 
                </tr>

                <tr>
                    <td ></td>
                </tr>

                <tr>
                    <td ><?= translate('SELECT_AREA') ?></td>
                </tr>

                <tr>
                    <td ></td>
                </tr>

                <tr>
                    <td >
                    <?php 
                    foreach ($arealist as $key => $value) { $num = 0; ?>
                            <input type="checkbox" name="row[area][]" value="<?=$key ?>"><?=$value ?>
                        <?php 
                        $num += 1; 
                        if ($num == 3){
                            $num =0; ?>
                            <br>
                         <?php
                        }
                     }?>
                    </td>
                </tr> 

                <!-- <td>&nbsp;</td> -->

                <tr>
                    <td ></td>
                </tr>

                <tr>
                    <td>
                        <input type="submit" value="<?= translate('SUBMIT') ?>" id="submit" />
                        <input type="reset" value="<?= translate('RESET') ?>" id="reset"/>
                    </td>
                </tr>
            </table>
        </form>
        <script type="text/javascript">
            SG.init("core.form", function() {
                $.formValidator.initConfig({formid: "#rowForm", submitonce: true});
            });
        </script>
    </body>
</html>
